//
//  LeverBarObject.h
//  StarBugs
//
//  Created by ?? ? on 6/12/12.
//  Copyright 2012 antisword@playorca.com. All rights reserved.
//

#ifndef __LeverBarObject_h__
#define __LeverBarObject_h__

#include "Object/ObjectSprite.h"


class LeverBarObject : public ObjectSprite
{
private:
    b2World *worldTmp;
    cocos2d::CCSprite *lever;
    cocos2d::CCArray *leverArray;
    int leverCnt;
public:
    ~LeverBarObject();
    LeverBarObject(int type);
    
    virtual void setBodyAngle(bool isInv);
    virtual void setBody(b2World* _world);
    virtual void removeBody(b2World *_world);
    virtual void resetObstacle();
    virtual void setMove(CCPoint pt); 
    
    void startOpen(b2World *_world);
    void tick_open(float dt);
};

#endif//__NORMALOBSTACLE_H__